home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Makefiles / lib / Makefile.lib.template < prev    next >
Encoding:
Makefile  |  1994-08-30  |  3.8 KB  |  122 lines

  1. # Makefile.lib.template
  2. #
  3. # by Mike Ferris
  4. # Part of MOKit
  5. # Copyright 1993, all rights reserved
  6. #
  7. # Used in the MiscKit by permission.
  8. #
  9. # This is based on Next's standard library make architecture
  10.  
  11. # This file is the template for the library makefile machinery.
  12. # Copy this file into your project directory as Makefile and fill in the
  13. # blanks
  14.  
  15. # directory where included Makefiles are located.
  16. MAKE_DIR = /LocalDeveloper/Makefiles/lib
  17.  
  18. # other directories to check for files (colon-separated and start the
  19. # list with a colon
  20. OTHER_VPATH = 
  21.  
  22. #  **1**  -LIBRARY NAME-
  23. #  The base name of the library goes here.  For example, if
  24. #  you enter "appkit" as the name, then the library created will 
  25. # be "libappkit.a".
  26. NAME = 
  27. DSTROOT = 
  28.  
  29. #  **2**  -SOURCE FILES-
  30. #  Here list the .m, .c, .psw, .pswm, .s, .l, .lm, .y, .ym, .ps and
  31. #  .spec files.  You may delete any lines that you don't use.
  32. #  OTHER_SRCS is used for files with other suffixes that you wish
  33. #  to be treated like source (i.e., printed with the source, copied
  34. #  with the source, etc.).  For files in OTHER_SRCS, you need to
  35. #  specify the corresponding .o file in OTHER_SRCS_OFILES.
  36. MFILES = 
  37. CFILES = 
  38. PSWFILES = 
  39. PSWMFILES = 
  40. SFILES = 
  41. LFILES = 
  42. LMFILES = 
  43. YFILES = 
  44. YMFILES = 
  45. PSFILES = 
  46. OTHER_SRCS = 
  47. OTHER_SRCS_OFILES =
  48.  
  49. #  **3**  -COMMAND OPTIONS-
  50. #  These are passed as arguments to the Objective-C compiler, pswrap, 
  51. #  as, lex, yacc.  You may delete lines that you don't use.  
  52. #  All CFLAGS also get passed to Objective-C.
  53. #    DEBUGCFLAGS is substituted for CFLAGS when "debug" is made.
  54. #    PROFCFLAGS is substituted for CFLAGS when "profile" is made.
  55. #  Under OBJCFLAGS, for each library that you use that supplies class
  56. #  and message group files, you must use a -I$(OBJDIR)/XXX, where
  57. #  XXX is the base name of the library.
  58. OBJCFLAGS = 
  59.  
  60. OPTCFLAGS = -O
  61. DEBUGCFLAGS = -g -DDEBUG -Wall
  62. PROFCFLAGS = -pg -g
  63.  
  64. PSWFLAGS = 
  65. ASFLAGS = 
  66. LFLAGS = 
  67. YFLAGS = 
  68.  
  69. MVFLAGS = 
  70. MKDIRSFLAGS = -m 755
  71. IFLAGS = -q -c  -m 444 -o root -g wheel
  72. ARFLAGS = ruv
  73. # Note: the last libtool flag MUST be a -o so the output file is set up right!
  74. LIBTOOLFLAGS = -o
  75. RANLIBFLAGS = 
  76.  
  77. #  **4**  -INCLUDE FILES-
  78. #  Private include files are used by the library's code, but not needed
  79. #  by the library's users.  Public include files are needed by others who
  80. #  will use the library, and must be installed along with the library.
  81. PUBLIC_INCFILES = 
  82. PRIVATE_INCFILES = 
  83.  
  84. #  **5**  -BY_PRODUCTS GENERATED FROM BUILDS-
  85. #  If your build procedure creates any files other than .o files and the
  86. #  .c and .m files left over from pswrap, you should list them here so
  87. #  they are removed when a make clean is done.
  88. BY_PRODUCTS = 
  89.  
  90. #  **6**  -INSTALLATION LOCATIONS-
  91. #  The following directories determines where files get installed.
  92. # places where libraries get installed
  93. LIBDIR = $(DSTROOT)/LocalDeveloper/lib
  94.  
  95. # places where headers get installed
  96. INCDIR = $(DSTROOT)/LocalDeveloper/Headers/$(NAME)
  97.  
  98. # place where PostScript package files get installed
  99. PSLIBDIR = $(DSTROOT)/LocalDeveloper/lib/$(NAME)
  100.  
  101. #this file included for standard functionality
  102. include $(MAKE_DIR)/Makefile.lib
  103.  
  104. #  **7**  -ALL AND INSTALL TARGETS-
  105. #  You must define your ownb all and install targets here.  "all" should
  106. #  build all products of your project.  "install" should install these
  107. #  products in the filesystem whose root is $(DSTROOT).  There are certain
  108. #  targets defined in Makefile.lib which you can use to fulfill the all
  109. #  and install targets.  These are optimized, debug, profile, shlib,
  110. #  optimized_install, debug_install, profile_install, shlib_install,
  111. #  and common_install.
  112. all:: optimized
  113.  
  114. install:: common_install optimized_install
  115.  
  116.  
  117. # You may comment in this line to get dependencies for the include files
  118. # you use.  To generate the dependencies, do a "make depend".
  119. #include Makefile.depends
  120.  
  121. #  any extra rules or dependencies can be added after this line
  122.